from django.urls import path
from . import views

app_name = 'communications'

urlpatterns = [
    #  校园信息
    path('schoolInformation/<int:category_id>/', views.information_view, name='information'),

    # 书写文章
    path('schoolPostCreate/', views.post_create_view, name='postCreate'),

    # 编辑文章
    path('schoolPostUpdate/<int:id>/', views.post_update_view, name='postUpdate'),

    # 文章详情
    path('postDetail/<int:id>/', views.post_detail_view, name='postDetail'),

    # 删除文章
    path('postDelete/<int:id>/', views.post_delete_view, name='postDelete'),

    # 文章点赞
    path('postLike/<int:id>/', views.post_no_like_add_view, name='postLike'),

    # 发表评论
    path('postComment/<int:post_id>/', views.post_comment_view, name='postComment'),
]
